<aside class="sidebar">
<style>
.warps {
	width:330px;
	height:180px;
	margin-bottom:15px;
	padding:10px;
}
.contents {
	width:300px;
	height:160px;
	margin:0px auto;
	padding:30px 30px;
	background:rgba(38, 38, 38, 0.6)!important;
	filter:Alpha(opacity=60);
	background:#000;
}

.contents p {
	font-weight:bold;
	position:relative;
	color:#fff;
	font-size:18px;
	line-height:30px;
	text-align:center;
	margin-top:20px;
}
.contents{ text-align:center}
.siatime{ font-size:12px; color:#CCC}
</style>

 

<div class="warps" style="background:url(http://p5gpeq59m.bkt.clouddn.com/backimg/bj_it.jpg) no-repeat left top; background-size:100%">
  <div class="contents"><a href="http://www.lilaiqun.com/resources" target="_blank" title="IT学习资源分享">
    <p>IT学习资源分享</p>
    <span class="siatime">Python PHP MySql</span>
    </a></div>
</div>

<!-- <div class="widget widget-tops" style="background-color:#262627; background-image:url(http://p5gpeq59m.bkt.clouddn.com/backimg/bj.jpg);background-size:100% ">
  <ul class="widget-navcontent">
		<li class="item item-02 active">
      <h4 style=" color:#fff">需要登录才能进入会员中心</h4>
      <p> <a href="javascript:;" class="btn btn-primary signin-loader">立即登录</a> <a href="javascript:;" class="btn btn-default signup-loader">现在注册</a> </p>
		</li>
	</ul>
</div> -->

	<div class="widget widget_ui_posts">
	<h3>热门文章<span class="w_title">TOP ARTICLES</span></h3>
	<ul>
		<?php foreach ($hots as $hot) {
			$id = $hot['id'];
			$title = $hot['title'];
			$subtract = $hot['subtract'];
			$time = substr($hot['time'], 0, 10);
			$thumbnail = $hot['thumbnail'] ? $hot['thumbnail'] : $defaultImage;
			?>
			<li><a target="_blank" href="/article/index<?php $id?>"><span class="thumbnail"><img src="<?php echo $thumbnail?>"> </span><span class="text"><?php echo $title?></span><span class="muted"><?php echo $time?></span><span class="muted"></span></a></li>
		<?php }?>
	</ul>
	</div>

	<div class="widget widget_ui_tags">
		<h3>热门标签热<span class="w_title">TOP TAGS</span></h3>
		<div class="items">
			<?php foreach ($tags as $tag) { 
				echo "<a href='/tag/".$tag['id']."'>".$tag['name']."</a>";
			}?>
		</div>
	</div>

</aside>